<?php

/*
 * Copyright (c) 2012-2013 Aalto University and University of Helsinki
 * MIT License
 * see LICENSE.txt for more information
 */

class DataObject {
  protected $model;  // Model instance which created this object
  protected $resource; // EasyRdf resource representing this object
  protected $lang;  // language for human readable texts to be returned

  public function __construct($model, $resource) {
    $this->model = $model;
    $this->resource = $resource;
    // get language from locale, same as used by gettext, set by Controller
    $this->lang = substr(getenv("LC_ALL"), 0, 2);
  }

}

?>
